<?php 
//$this->layout()->title = "Bienvenue sur notre site web";
$this->layout()->subTitle = "Offre du mois";
?>

<?php
$nbMateriel = count($this->paginator);
foreach($this->paginator as $materiel) {
	$url = $this->url(array('module'=>'location','controller'=>'materiel-informatique','action'=>'info','materielid'=>$materiel['id']));
?>
		
    <div class="block_img_desc">
        <div class="block_img"><img src="<?php echo $this->baseUrl()?>/../data/location/images/<?php echo  $materiel['image1'];?>" alt="ordi" width="280" height="226" border="0" align="middle" /></div>
        <div class="block_desc">
    	  <nom_mat><?php echo $materiel['title'];?></nom_mat>
    	  <br />
    	  <br />
    	  <p><?php echo "<table border='0' width='100%'><tr>
				<td valign='top'><a href='" . $url . "'>Voir</a> 
				<br/> <b>Réf : m" . $materiel['id'] . "</b>
				<br /> " . $materiel['description'] ."<br />
				<br/> <b>" . $materiel['price1'] . " &#8364; pour 1 jour</b>
				<br/> <b>" . $materiel['price2'] . " &#8364; pour 3 jours</b>
				<br/> <b>" . $materiel['price3'] . " &#8364; pour une semaine</b>
				</td>
		  </tr></table>";?>
  	      </p>
        </div>
    </div>
	

<?php } echo $this->paginator; ?>

